
source_dir="gperftools-2.3"
if [ ! -d "$source_dir" ]; then
	git clone https://git.oschina.net/wr4ng1er/gperftools-2.3.git
else
	echo $source_dir
fi

cd $source_dir

./configure --enable-frame-pointers
make
make install

echo '/usr/local/lib' >> /etc/ld.so.conf.d/perftools.conf

sudo /sbin/ldconfig
mkdir /tmp/tcmalloc
chmod 0777 /tmp/tcmalloc/

 



